﻿using System;
using System.ComponentModel.DataAnnotations;
using Furion.DatabaseAccessor;

namespace Cool.Core.Entities.System
{
    public class SysPost: DEntityBase
    {
        public SysPost()
        {
            CreatedTime = DateTimeOffset.Now.LocalDateTime;
            IsDeleted = false;
        }
        /// <summary>
        /// 岗位编码
        /// </summary>
        [Required, MaxLength(64)]
        public string PostCode { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        [Required, MaxLength(64)]
        public string PostName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 菜单状态（0正常 1停用）
        /// </summary>
        public char Status { get; set; }
    }
}
